import { createStore } from 'vuex'
import use from './module/use'
const store = createStore({
	state() {
		return {
			count: 0,
		}
	},
	mutations: {
		increment(state:any) {
			state.count++
		},
	},
    actions:{
        sub({commit,state}){
            // commit('increment')
            state.count += 5
        }
    },
    modules:{
        use
    }
})

export default store